var app = getApp();
var util = require("../../utils/libs.js")
var api = require("../../utils/api.js")
Page({
  data: {
     skillList:[],
     id:""
  },
  onLoad(options) {
    let that = this
    // 页面初始化 options为页面跳转所带来的参数
    that.setData({
      id: options.id
    })
    let uid = wx.getStorageSync("uid");
    util.request(api.drafList+'?id='+that.data.id,{uid:uid,page:'1',limit:10,}).then(function(res){})
  },
  handleRemove(){
    let that = this
    util.request(api.deleteBuildDraft,{ id:that.data.id},"POST")
   .then(function (res) {
     if(res.error_code === 0){
       wx.navigateTo({
           url:"/pages/publish/publish"
       })
     }
   })
  },
  handleSet(){
      let that = this
    wx.navigateTo({
        url:"/pages/releasenotes/releasenotes?id="+that.data.id
    })
  },
  onReady () {
    // 页面渲染完成
  },
  onShow () {
    // 页面显示
  },
})